package com.soft.cake.mapper;

import java.util.List;
import java.util.Map;

import com.soft.cake.pojo.Cart;

public interface CartMapper {
    int deleteByPrimaryKey(Integer cartId);

    int insert(Cart record);

    int insertSelective(Cart record);

    Cart selectByPrimaryKey(Integer cartId);

    int updateByPrimaryKeySelective(Cart record);

    int updateByPrimaryKey(Cart record);
    
    List<Cart> selectListByUserId(Integer userId);
    
    Cart selectByProductAndUser(Map map);
}